package org.arrendar.kakeibo.dto;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class MonthlyMoney implements Serializable{
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long ID;
	@Persistent
	private String User;
	@Persistent
	private int Year;
	@Persistent
	private int Month;
	@Persistent
	private int TotalMoney;
	
	public MonthlyMoney() {
		super();
	}

	public MonthlyMoney(String user, int year, int month, int totalMoney) {
		super();
		User = user;
		Year = year;
		Month = month;
		TotalMoney = totalMoney;
	}
	
	public MonthlyMoney(Long iD, String user, int year, int month,int totalMoney) {
		this(user,year,month,totalMoney);
		ID = iD;
	}

	public Long getID() {
		return ID;
	}

	public void setID(Long iD) {
		ID = iD;
	}

	public String getUser() {
		return User;
	}
	public void setUser(String user) {
		User = user;
	}
	public int getYear() {
		return Year;
	}
	public void setYear(int year) {
		Year = year;
	}
	public int getMonth() {
		return Month;
	}
	public void setMonth(int month) {
		Month = month;
	}
	public int getTotalMoney() {
		return TotalMoney;
	}
	public void setTotalMoney(int totalMoney) {
		TotalMoney = totalMoney;
	}
}
